﻿namespace Mohe.Scada.Core.Models
{
    public partial class SysUserDTO
    {
        public int Id { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public string Account { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }


        public string OldPassword { get; set; }

        public string NewPassword { get; set; }

        public string ConfirmPassword { get; set; }
        /// <summary>
        /// 工号
        /// </summary>
        public string EnCode { get; set; }

        public string ShowText { get => $"{EnCode}[{Account}]"; }
        /// <summary>
        /// 注册日期
        /// </summary>
        public DateTime SignInDate { get; set; } = DateTime.Now;
        /// <summary>
        /// 最近登录日期
        /// </summary>
        public DateTime LastLoginTime { get; set; }
        /// <summary>
        /// 最近操作日期
        /// </summary>
        public DateTime LastOperTime { get; set; }
        /// <summary>
        /// 多租户
        /// </summary>
        public int TenantId { get; set; }
        /// <summary>
        /// 超级管理员
        /// </summary>
        public bool SuperAdmin { get; set; }


        public List<int> RoleIdList { get; set; }

    }


}
